package com.ruoyi.receipt.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户消息对象 tb_user_message
 *
 * @author ruoyi
 * @date 2021-03-30
 */
public class TbUserMessage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 发送方id,1为admin */
    @Excel(name = "发送方id,1为admin")
    private Long sendUserId;

    /** 发送方名称 */
    @Excel(name = "发送方名称")
    private String sendUserName;

    /** 发送方用户类型 1家长 2学生 */
    @Excel(name = "发送方用户类型 1家长 2学生")
    private Integer sendUserType;

    /** 发送方登录账户 */
    @Excel(name = "发送方登录账户")
    private String sendUserLoginAccount;

    /** 发送方请求操作 0无操作(默认) 1绑定 2解绑 */
    @Excel(name = "发送方请求操作 0无操作(默认) 1绑定 2解绑")
    private Integer sendUserOperation;

    /** 接收方id */
    @Excel(name = "接收方id")
    private Long receiptUserId;

    /** 接收方操作 0无操作(默认) 1绑定 2解绑 3已读  4取消 */
    @Excel(name = "接收方操作 0无操作(默认) 1绑定 2解绑 3已读  4取消")
    private Integer receiptUserOperation;

    /** 删除状态 0未删除(默认) 1已删除 */
    @Excel(name = "删除状态 0未删除(默认) 1已删除")
    private Integer isDel;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSendUserId(Long sendUserId)
    {
        this.sendUserId = sendUserId;
    }

    public Long getSendUserId()
    {
        return sendUserId;
    }
    public void setSendUserName(String sendUserName)
    {
        this.sendUserName = sendUserName;
    }

    public String getSendUserName()
    {
        return sendUserName;
    }
    public void setSendUserType(Integer sendUserType)
    {
        this.sendUserType = sendUserType;
    }

    public Integer getSendUserType()
    {
        return sendUserType;
    }
    public void setSendUserLoginAccount(String sendUserLoginAccount)
    {
        this.sendUserLoginAccount = sendUserLoginAccount;
    }

    public String getSendUserLoginAccount()
    {
        return sendUserLoginAccount;
    }
    public void setSendUserOperation(Integer sendUserOperation)
    {
        this.sendUserOperation = sendUserOperation;
    }

    public Integer getSendUserOperation()
    {
        return sendUserOperation;
    }
    public void setReceiptUserId(Long receiptUserId)
    {
        this.receiptUserId = receiptUserId;
    }

    public Long getReceiptUserId()
    {
        return receiptUserId;
    }
    public void setReceiptUserOperation(Integer receiptUserOperation)
    {
        this.receiptUserOperation = receiptUserOperation;
    }

    public Integer getReceiptUserOperation()
    {
        return receiptUserOperation;
    }
    public void setIsDel(Integer isDel)
    {
        this.isDel = isDel;
    }

    public Integer getIsDel()
    {
        return isDel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("sendUserId", getSendUserId())
                .append("sendUserName", getSendUserName())
                .append("sendUserType", getSendUserType())
                .append("sendUserLoginAccount", getSendUserLoginAccount())
                .append("sendUserOperation", getSendUserOperation())
                .append("receiptUserId", getReceiptUserId())
                .append("receiptUserOperation", getReceiptUserOperation())
                .append("isDel", getIsDel())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
